Skip to content

test: allow underscores in hash for server routes preload links#33106

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:e2e-module-preload
Apr 30, 2026
Merged

test: allow underscores in hash for server routes preload links#33106
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:e2e-module-preload

Conversation

@alan-agius4
Copy link
Copy Markdown
Collaborator

Updates the regular expressions in server-routes-preload-links.ts to allow underscores in the generated file hashes (changing [a-zA-Z0-9]{8} to [a-zA-Z0-9_]{8}).

This ensures that the test correctly identifies modulepreload links when the hash contains an underscore, preventing failures due to overly strict matching.

Updates the regular expressions in server-routes-preload-links.ts to allow underscores in the generated file hashes (changing [a-zA-Z0-9]{8} to [a-zA-Z0-9_]{8}).

This ensures that the test correctly identifies modulepreload links when the hash contains an underscore, preventing failures due to overly strict matching.
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Apr 30, 2026
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release and removed action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Apr 30, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the regular expressions in the server-rendering E2E tests to include underscores in the expected file hash patterns. The feedback suggests using the more concise \w shorthand in place of [a-zA-Z0-9_] and recommends refactoring the repeated regex patterns into constants or helper functions to improve maintainability.

@alan-agius4 alan-agius4 merged commit 0841637 into angular:main Apr 30, 2026
38 checks passed
@alan-agius4
Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4 alan-agius4 deleted the e2e-module-preload branch April 30, 2026 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants